﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlogEngine.Core.Providers.EloqueraProvider.Db
{
    public class EqPost
    {
        public Guid Id = Guid.NewGuid();
        public string Title = string.Empty;
        public string Description = string.Empty;
        public string Content = string.Empty;
        public DateTime DateCreated = DateTime.Now;
        public DateTime DateModified = DateTime.Now;
        public string Author = string.Empty;
        public bool IsPublished = false;
        public bool IsCommentsEnabled = false;
        public int Raters = 0;
        public float Rating = 0;
        public string Slug = string.Empty;
        public string[] Tags = new string[] { };
        public EqComment[] Coments = new EqComment[] { };
        public string[] Categories = new string[] { };
        public string[] Emails = new string[] { };
    }
    
    public class EqComment {
        public Guid Id = Guid.NewGuid();
        public Guid ParentId = Guid.NewGuid();
        public string Author = string.Empty;
        public string Email = string.Empty;
        public EqPost Parent = null;
        public string Country = string.Empty;
        public string Ip = string.Empty;
        public string WebSite = string.Empty;
        public bool IsApproved = false;
        public string Content = string.Empty;
        public DateTime DateCreated = DateTime.Now;
    }
}
